package com.company;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;

public class Sending implements Runnable{
    private String to;    //收件人
    private String subject;    //主题
    private String content;    //内容
    private int type;    //内容
    private List<String> fileStr;    //附件路径

    public Sending(String to, String subject, String content, List<String> fileStr,int  tp) {
        this.to = to;
        this.subject = subject;
        this.content = content;
        this.fileStr = fileStr;
        this.type=tp;
    }

    @Override
    public void run() {
        SendEmailUtil sendEmail = new SendEmailUtil(to, subject, content, fileStr,type);
        sendEmail.send();
    }

}